package io.github.talelin.latticy.vo;

import io.github.talelin.latticy.model.WareareaDO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @authoer:wulongbo
 * @createDate:2022/6/7
 * @description:
 */
@Data
public class WareareaVO {

    private Integer id;

    /**
     * 仓库id
     */
    private String code;

    /**
     * 区域名称
     */
    private String name;

    /**
     * 区域优先级
     */
    private Integer areaOrder;

    /**
     * 接收
     */
    private Boolean receiveFlag;

    /**
     * 仓储
     */
    private Boolean stockFlag;

    /**
     * 拣货
     */
    private Boolean pickFlag;

    /**
     * 退货
     */
    private Boolean returnFlag;

    /**
     * 0:不可用;1:可用
     */
    private Boolean status;

    /**
     * 库位数量
     */
    private int count;

    public WareareaVO(WareareaDO wareareaDO, int count) {
        BeanUtils.copyProperties(wareareaDO, this);
        this.count = count;
    }
}
